Question 3 Implement Function Using Prolog [4 Points

Question 3 Implement Function Using Prolog [4 Points